import { contextBridge, shell } from 'electron';
import { electronAPI } from '@electron-toolkit/preload';
import { ClientAppSdk } from '#common/types/client-app-sdk';
import { exposeConf } from 'electron-conf/preload';

exposeConf();

contextBridge.exposeInMainWorld('clientAppSdk', {
  ipc: electronAPI,
  shell: {
    openExternal: shell.openExternal
  }
} satisfies ClientAppSdk);
